/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.smarttv.userpreference;

import com.hp.hpl.jena.rdf.model.Resource;
import java.util.Enumeration;
import java.util.Hashtable;

/**
 *
 * @author JDK
 */
public class ResourcePreference extends Hashtable<Resource, Double> {
    
    private int MAX_COUNT;
    private Hashtable<Resource, Integer> upt;
               
    public ResourcePreference(Hashtable<Resource, Integer> upt){
        this.upt = upt;
        this.MAX_COUNT = 0;
        Enumeration<Resource> e = upt.keys();
        while(e.hasMoreElements()){
            Resource r = e.nextElement();
            int count = upt.get(r);
            
            
            
            if(count > MAX_COUNT){
                MAX_COUNT = count;
            }
        }
        
    }
    
    public void updatePreferenceResourceWeight(){
        
    }
    
    public Hashtable<Resource, Integer> getPreferedResourceTable(){
        return this.upt;
    }
    
    
}
